using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;

public class open_close : MonoBehaviour
{
    static private CanvasGroup c;
    static public void canvas_open(GameObject gb)
    {
        c = gb.GetComponent<CanvasGroup>();
        c.alpha = 1;
        c.blocksRaycasts = true;
        c.interactable = true;
    }
    static public void canvas_close(GameObject gb)
    {
        c = gb.GetComponent<CanvasGroup>();
        c.alpha = 0;
        c.blocksRaycasts = false;
        c.interactable = false;
    }
}
